<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons/jsp/taglibs.jsp"%>
<%@taglib uri="http://www.framework.com/taglib/tree" prefix="tree"%>
<%@taglib prefix="frame" uri="http://www.framework.com/taglib"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<style type="text/css">
 .lg{width:75%;}

</style>
<form name="addDataForm" id="addAdvDataForm" method="post" action="${ctx}/business/webadv/save">
	<input type="hidden" name="id" value="${adv.id}"/>
	<input type="hidden" name="createTime" value="${adv.createTime}"/>
	<input type="hidden" name="createrId" value="${adv.createrId}"/>
	<input type="hidden" name="createrName" value="${adv.createrName}"/>
	<table class="infoTable">
		<tbody>
		<tr>
			<th align="right" width="10%">标题名称</th>
			 <td colspan="3">
			  <input name="content" class="easyui-validatebox lg"  value="${adv.content}" data-options="required:true" maxlength="50"/>
			</td>	  
		</tr>
		
		<tr>
		   
		    <th align="right" width="10%">所属广告位</th>
			 <td>
			<select class="easyui-combobox" name="position" style="width:120px;" data-options="panelHeight:100,required:true">
				<c:forEach items="${frame:dictChildren('adposition')}" var="ps">
						<option value="${ps.value}" <c:if test="${adv.position == ps.value}">selected="selected"</c:if> >${ps.name}</option>
					</c:forEach>
		    	</select>
			</td>	
			
			 <th align="right" width="10%">广告类别</th>
			 <td>
			  <select name="type" class="easyui-combobox" style="width:80px;" data-options="panelHeight:100,required:true">
				<c:forEach items="${frame:dictChildren('adtype')}" var="pos">
				 <option value="${pos.value}"  <c:if test="${adv.type == pos.value}">selected="selected"</c:if> >${pos.name}</option>
				</c:forEach>
			</select>
			</td>	
		</tr>
		
		
		<tr>
			<th align="right" width="10%">开始时间</th>
			 <td>
			 <input name="startTime" class="easyui-datebox" value="<fmt:formatDate pattern="yyyy-MM-dd"  value="${adv.startTime}"/>" data-options="validType:['date']"/>
			</td>	
		   
		    <th align="right" width="10%">结束时间</th>
			 <td>
			 <input name="endTime" class="easyui-datebox" value="<fmt:formatDate pattern="yyyy-MM-dd"  value="${adv.endTime}"/>" data-options="validType:['date']"/>
			</td>	
		</tr>
		
		</tbody>
	</table>
</form>


